<!DOCTYPE html>
<!-- saved from url=(0022)https://guanchao.site/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>tnan博客</title>

<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="keywords" content="">
<meta name="description" content="。">
<link rel="Bookmark" href="https://guanchao.site/uploads/website/5c093bf268185.png">
<!-- <LINK rel="Bookmark" href="favicon.ico" > -->
<link rel="Shortcut Icon" href="https://guanchao.site/uploads/website/5c093bf268185.png">
<!-- <LINK rel="Shortcut Icon" href="favicon.ico" /> -->

<link rel="stylesheet" type="text/css" href="/static/css/H-ui.min.css">
<link rel="stylesheet" type="text/css" href="/static/css/iconfont.min.css">
<link rel="stylesheet" type="text/css" href="/static/css/common.css">
<link rel="stylesheet" type="text/css" href="/static/css/page.css">
<link rel="stylesheet" type="text/css" href="/static/css/pifu.css">
<link rel="stylesheet" type="text/css" href="/static/css/timeline.css">
<link rel="stylesheet" type="text/css" href="/static/css/wangEditor.min.css">
<link rel="stylesheet" type="text/css" href="/static/css/layui.css">

<!--style文件夹中，每一个css就是一个样式主题，可自行选择-->
<link rel="stylesheet" type="text/css" href="/static/css/github.css">

<!-- <script type="text/javascript" src="/style/home/plugin/jquery/1.9.1/jquery.min.js"></script> -->
<script type="text/javascript" src="/static/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/js/layer.js"></script><link rel="stylesheet" href="/static/css/layer.css" id="layuicss-layer">
<script type="text/javascript" src="/static/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/js/pifu.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/wangEditor.min.js"></script>

<script type="text/javascript" src="/static/js/shCore.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/shCoreDefault.css">

<script> $(function () { $(window).on("scroll", backToTopFun); backToTopFun(); }); </script>
<script type="text/javascript" src="/static/js/jquery.SuperSlide.min.js"></script>
<script type="application/x-javascript"> /*addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }//*/ function showSide(){$('.navbar-nav').toggle();}</script>

<script>
    window.onscroll = function() {
        // 获取滚动条位置
        var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
        // 设置cookie
        SetCookie("a", scrollTop);

        // ===============  回到顶部部分代码 ==============
        var timer = null;//时间标识符
        var isTop = true;
        
        var obtn = document.getElementsByClassName('to_top')[0];
        obtn.onclick = function(){
            // 设置定时器
            timer = setInterval(function(){
                var osTop = document.documentElement.scrollTop || document.body.scrollTop;
                //减小的速度
                var isSpeed = Math.floor(-osTop/6);
                document.documentElement.scrollTop = document.body.scrollTop = osTop+isSpeed; 
                //判断，然后清除定时器
                if (osTop == 0) {
                    clearInterval(timer);
                } 
                isTop = true;//添加在obtn.onclick事件的timer中    
            },30);                          
        };
        //获取页面的可视窗口高度
        var client_height = document.documentElement.clientHeight / 2 || document.body.clientHeight / 2;

        //在滚动的时候增加判断,忘了的话很容易出错
        var osTop = document.documentElement.scrollTop || document.body.scrollTop;
        if (osTop >= client_height) {
            obtn.style.opacity = '1';
        }else{
            obtn.style.opacity = '0';
        }         
        if(!isTop){
            clearInterval(timer);
        }
        isTop = false;

    }
    window.onload = function () {
        //页面加载时设置scrolltop高度
        document.body.scrollTop = GetCookie("a");
    }
    
    /**
     * 设置cookie
     */
    function SetCookie(sName, sValue) {
        document.cookie = sName + "=" + escape(sValue) + "; ";
    }
    /**
     * 读取cookie
     */
    function GetCookie(sName) {
        var aCookie = document.cookie.split("; ");
        for (var i = 0; i < aCookie.length; i++) {
            var aCrumb = aCookie[i].split("=");
            if (sName == aCrumb[0])
            {
                return unescape(aCrumb[1]);
            }
        }
        return 0;
    }
</script><style>
    .to_top{
        width: 50px;
        height: 50px;
        position: fixed;
        bottom: 10%;
        right: 20px;
        font-size: 40px;
        line-height: 70px;
        border: none;
        background: rgba(0,0,0,0.2);
        cursor: pointer;
        opacity: 0;
        /*display: none;*/
        transition: all 1s;
        z-index: 99999;
    }
</style><script src="/static/js/share.js"></script><link rel="stylesheet" href="/static/css/share_style0_24.css"><link rel="stylesheet" href="/static/css/imgshare.css"><link rel="stylesheet" href="/static/css/share_popup.css"><link rel="stylesheet" href="/static/css/select_share.css"></head>



<body style="border-image: 'http://static.oneplus.cn/data/attachment/forum/201410/18/111440yq2sp3y35mmmsmpm.jpg'" bgcolor="http://static.oneplus.cn/data/attachment/forum/201410/18/111440yq2sp3y35mmmsmpm.jpg">
    <!-- 回到顶部html -->
    <div>
		<img src="/static/images/timg.jpg" alt="" class="to_top" data-bd-imgshare-binded="1" style="opacity: 0;">
	</div>


<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container cl">
            <a class="navbar-logo hidden-xs" href="/blog/">
                <img class="logo" src="/static/images/5c09c5ca26c64.png" alt="时间里的博客" data-bd-imgshare-binded="1">
            </a>
            <a class="logo navbar-logo-m visible-xs"><b>时间里的</b></a>

            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:void(0);" onclick="showSide();"></a>
            <nav class="nav navbar-nav nav-collapse w_menu" role="navigation">
                <ul class="cl">
					{{if truestring .name "all"}}
                    <li class="active"> <a href="/blog/" data-hover="首页">首页</a> </li>
					<li><a href="/blog/python/" data-hover="Python">Python</a></li>
					<li><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
					<li><a href="/blog/c++/" data-hover="C++">C++</a></li>
					<li><a href="/blog/database/" data-hover="数据库">数据库</a></li>
					<li><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>
					<li><a href="/blog/rests/" data-hover="其他">其他</a></li>
					{{else if  truestring .name "python"}}
					<li> <a href="/blog/" data-hover="首页">首页</a> </li>
                    <li class="active"><a href="/blog/python/" data-hover="Python">Python</a></li>
                    <li><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
					<li><a href="/blog/c++/" data-hover="C++">C++</a></li>
                    <li><a href="/blog/database/" data-hover="数据库">数据库</a></li>
					<li><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>

					<li><a href="/blog/rests/" data-hover="其他">其他</a></li>
					{{else if truestring .name "golang"}}
						<li> <a href="/blog/" data-hover="首页">首页</a> </li>
						<li><a href="/blog/python/" data-hover="Python">Python</a></li>
						<li class="active"><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
						<li><a href="/blog/c++/" data-hover="C++">C++</a></li>
						<li><a href="/blog/database/" data-hover="数据库">数据库</a></li>
						<li><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>

						<li><a href="/blog/rests/" data-hover="其他">其他</a></li>

					{{else if truestring .name "c++"}}
						<li> <a href="/blog/" data-hover="首页">首页</a> </li>
						<li><a href="/blog/python/" data-hover="Python">Python</a></li>
						<li><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
						<li class="active"><a href="/blog/c++/" data-hover="C++">C++</a></li>
						<li><a href="/blog/database/" data-hover="数据库">数据库</a></li>
						<li><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>
						<li><a href="/blog/rests/" data-hover="其他">其他</a></li>
					{{else if truestring .name "database"}}
						<li> <a href="/blog/" data-hover="首页">首页</a> </li>
						<li><a href="/blog/python/" data-hover="Python">Python</a></li>
						<li><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
						<li><a href="/blog/c++/" data-hover="C++">C++</a></li>
						<li class="active"><a href="/blog/database/" data-hover="数据库">数据库</a></li>
						<li><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>
						<li><a href="/blog/rests/" data-hover="其他">其他</a></li>

					{{else if truestring .name "data_alg"}}
						<li> <a href="/blog/" data-hover="首页">首页</a> </li>
						<li><a href="/blog/python/" data-hover="Python">Python</a></li>
						<li><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
						<li><a href="/blog/c++/" data-hover="C++">C++</a></li>
						<li><a href="/blog/database/" data-hover="数据库">数据库</a></li>
						<li class="active"><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>
						<li><a href="/blog/rests/" data-hover="其他">其他</a></li>
					{{else}}
						<li> <a href="/blog/" data-hover="首页">首页</a> </li>
						<li><a href="/blog/python/" data-hover="Python">Python</a></li>
						<li><a href="/blog/golang/" data-hover="Golang">Golang</a></li>
						<li><a href="/blog/c++/" data-hover="C++">C++</a></li>
						<li><a href="/blog/database/" data-hover="数据库">数据库</a></li>
						<li><a href="/blog/data_alg/" data-hover="数据结构与算法">数据结构与算法</a></li>
						<li class="active"><a href="/blog/rests/" data-hover="其他">其他</a></li>
						<!-- <li> <a href="/index/about/index.html" data-hover="关于我">关于我</a> </li> -->
                {{end}}
				</ul>
            </nav>
            <nav class="navbar-nav navbar-userbar hidden-xs hidden-sm " style="top: 0;">
                <ul class="cl">
                    <li class="userInfo dropDown dropDown_hover">
                    <li class="userInfo dropDown dropDown_hover">
{{/*                                                    <form action="https://guanchao.site/index/user/index.html" method="post" style="position: relative;">*/}}
                                <input type="hidden" name="now_url" value="" id="now_url">
{{/*                                <a href="https://guanchao.site/#" onclick="login_qq()">*/}}
                                    <img class="avatar size-S" style="width:30px;height: 30px;" src="/static/images/QQ.png" title="登入" data-bd-imgshare-binded="1">
                                    <!-- <input type="submit" value="登入"> -->
                                    <button style="position: absolute; width: 30px;height:30px;left: 50%;margin-left: -15px;top: 50%;margin-top: -15px;opacity: 0; cursor:pointer;"></button>
                                </a>
{{/*                            </form>*/}}
                                                    <!-- <a href="/index/user/index.html" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" > -->
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>
<script>
    // 登录取当前页url（用于登录成功之后返回使用） 
    function login_qq(){
        var now_url = this.location.href;
        $("#now_url").val(now_url);
    }

    // ajax退出登录
    function layout(){
        $.ajax({
            type: "POST",//方法类型
            dataType: "json",//预期服务器返回的数据类型
            url: "/index/user/layout.html" ,//url
            data: {},
            success: function (data) {
                if (data.code == 1) {
                    layer.msg('操作成功',{time:500},function(){
                      document.location.reload();
                    });//*/
                }else{
                    layer.msg('操作失败');
                };
            },
            error : function() {
                alert("异常！");
            }
        });//*/
    }

    

</script>




<section class="container pt-20" bgcolor="http://static.oneplus.cn/data/attachment/forum/201410/18/111440yq2sp3y35mmmsmpm.jpg" style="border-image: 'http://static.oneplus.cn/data/attachment/forum/201410/18/111440yq2sp3y35mmmsmpm.jpg'">
	<!--<div class="Huialert Huialert-info"><i class="Hui-iconfont">&#xe6a6;</i>成功状态提示</div>-->
  <!--left-->
  <div class="col-sm-9 col-md-9">
  	<!--滚动图-->

		<!-- 登录标志 -->
		<span id="sessionid" data-sessionid="">	</span>		

		<div class="art_content">
			<ul class="index_arc" id="index_arc">
				{{ range $i, $j := .item }}
					{{if le $i 9}}
								<span>	
					<li class="index_arc_item" data-id="1" id="{{$j.ID}}">
						<a class="pic">

							<img class="lazyload" data-original="https://guanchao.site/uploads/atricle/5e990404058be.jpg" alt="" src="{{stringadd $j.ShowImage $i}}" data-bd-imgshare-binded="1" style="display: inline-block;">
						</a>
						<h4 class="title">
							<a>
							<!-- <a href="/index/article/articledetail/artid/388.html"> -->
							{{$j.Title}}							</a>
						</h4>
						<div class="date_hits">
							<!-- <span>camellia</span> -->
							<span>{{timecut $j.CreatedAt}}</span>
							<p class="hits">read</i> {{$j.LookNum}} </p>&nbsp;&nbsp;&nbsp;
						</div>
						<div class="desc">{{$j.ShowContent}}</div>
					</li>
				</span>
						{{end}}
				{{ end }}
          
			</ul>
	        <div class="ul_btn">
	        	<ul class="pagination">
					{{if .blogpage.Prev}}
					<li class=""><a href="{{urladd .url .blogpage.Prev}}">上一页</a></li>
					{{end}}
					<li class="active"><span>{{.blogpage.Page}}</span></li>
						{{if .blogpage.Next}}
					<li><a href="{{urladd .url .blogpage.Next}}">下一页</a></li>
					{{end}}
				</ul>	        </div>
	    <!-- </div> -->
		</div>
  </div>


	<!--right-->
  <div class="col-sm-3 col-md-3">
	  <iframe frameborder=”no” border=”0″ marginwidth="0" marginheight=”0″ width=auto height=auto src="https://music.163.com/outchain/player?type=0&amp;id=2976594375&amp;&auto=0&height=86&width=305" style="margin-left: -10px"></iframe>
  	<!--搜索-->
        <div class="panel panel-default mb-20">
            <div class="panel-body">
            	<div class="search-box">
            		<form action="/blog/search/" method="get">
                		<input type="text" class="search-input" value="{{.content}}" name="search" readonly="readonly">
                		<input type="submit" value="小情话" class="search-submit">
                	</form>
                </div>
            </div>

		</div>
  	<!--热门推荐-->

        
		<!--标签-->
		<div class="bg-fff box-shadow radius mb-20">
			<div class="tab-category">
				<a href="https://guanchao.site/"><strong>标签云</strong></a>
			</div>
			<div class="tab-category-item">
				<div class="tags">
									<a href="#59.html" class="tags9">Pycharm</a>
									<a href="#58.html" class="tags9">Python</a>
									<a href="#57.html" class="tags3">Ubuntu</a>
									<a href="#56.html" class="tags4">MySQL</a>
									<a href="#55.html" class="tags6">Docker</a>
									<a href="#54.html" class="tags1">Golang</a>
									<a href="#53.html" class="tags9">C++</a>
									<a href="#51.html" class="tags9">redis</a>
									<a href="#50.html" class="tags8">web</a>
									<a href="#48.html" class="tags5">RabbitMQ</a>
									<a href="#47.html" class="tags9">Cerlery</a>
									<a href="#46.html" class="tags8">uWSGI</a>
									<a href="#45.html" class="tags2">windows</a>
									<a href="#44.html" class="tags1">Flask</a>
									<a href="#43.html" class="tags5">Django</a>
									<a href="#42.html" class="tags1">Gin</a>
									<a href="#41.html" class="tags5">SQLAlchemy</a>
									<a href="#40.html" class="tags6">GORM</a>
									<a href="#26.html" class="tags1">requests</a>
									<a href="#23.html" class="tags5">lxml</a>
									<a href="#22.html" class="tags4">xpath</a>
									<a href="#21.html" class="tags9">爬虫</a>

									<a href="#19.html" class="tags3">https</a>
									<a href="#6.html" class="tags6">nginx</a>
									<a href="#3.html" class="tags9">git</a>

				</div>
			</div>

		</div>

  </div>
</section>
<script>
	$('.index_arc_item').click(function(){
		var status = this.getAttribute("data-id");
		var _id = this.id;
		var idStr = window.btoa(_id);
		var url = "/blog/details/"+idStr + "/";
		var session = document.getElementById("sessionid");
		var sessionid = session.getAttribute("data-sessionid");
		console.log(sessionid);
		window.location.href=url;
		
	});

	$(function () {
		//幻灯片
		jQuery(".slider_main .slider").slide({ mainCell: ".bd ul", titCell: ".hd li", trigger: "mouseover", effect: "leftLoop", autoPlay: true, delayTime: 700, interTime: 2000, pnLoop: true, titOnClassName: "active" })
		//tips
		jQuery(".slideTxtBox").slide({ titCell: ".hd ul", mainCell: ".bd ul", autoPage: true, effect: "top", autoPlay: true });
		//标签
		$(".tags a").each(function () {
			var x = 9;
			var y = 0;
			var rand = parseInt(Math.random() * (x - y + 1) + y);
			$(this).addClass("tags" + rand)
		});

		$("img.lazyload").lazyload({ failurelimit: 3 });
	});
	/*addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); /*function hideURLbar(){ window.scrollTo(0,1); }//*/ function showSide(){$('.navbar-nav').toggle();}

</script>




<footer class="footer mt-20">
	<div class="container-fluid" id="foot">
		<p>Copyright © 2016-2020
			<br>
			<br>
		</p>
	</div>
</footer>




<iframe frameborder="0" id="bdSharePopup_selectshare1587258888360bg" class="bdselect_share_bg" style="display:none;" src="./时间里的博客_技术博客_files/saved_resource.html"></iframe><div id="bdSharePopup_selectshare1587258888360box" style="display: none;" share-type="selectshare" class="bdselect_share_box" data-bd-bind="1587258888360"><div class="selectshare-mod-triangle"><div class="triangle-border"></div><div class="triangle-inset"></div></div><div class="bdselect_share_head"><span>分享到</span><a href="http://www.baidu.com/s?wd=&amp;tn=SE_hldp08010_vurs2xrp" class="bdselect_share_dialog_search" target="_blank"><i class="bdselect_share_dialog_search_i"></i><span class="bdselect_share_dialog_search_span">百度一下</span></a><a class="bdselect_share_dialog_close"></a></div><div class="bdselect_share_content"><ul class="bdselect_share_list bdshare-button-style0-24"><div class="bdselect_share_partners"><a href="/blog/" class="bds_qzone" data-cmd="qzone"></a><a href="/blog/" class="bds_tsina" data-cmd="tsina"></a><a href="https://guanchao.site/#" class="bds_tqq" data-cmd="tqq"></a><a href="https://guanchao.site/#" class="bds_renren" data-cmd="renren"></a><a href="/blog/#" class="bds_weixin" data-cmd="weixin"></a></div><a href="https://guanchao.site/#" class="bds_more" data-cmd="more"></a></ul></div></div><div id="bdimgshare_1587258888368" class="sr-bdimgshare sr-bdimgshare-list sr-bdimgshare-24 sr-bdimgshare-black" style="height: 42px; line-height: 32px; font-size: 14px; position: absolute; top: 80px; left: 331.5px; width: 923px; display: none;" data-bd-bind="1587258888368"><div class="bdimgshare-bg"></div><div class="bdimgshare-content bdsharebuttonbox bdshare-button-style0-24"><label class="bdimgshare-lbl">分享到：</label><a href="https://guanchao.site/#" onclick="return false;" class="bds_qzone" data-cmd="qzone" hidefocus=""></a><a href="/blog/#" onclick="return false;" class="bds_tsina" data-cmd="tsina" hidefocus=""></a><a href="/blog/#" onclick="return false;" class="bds_tqq" data-cmd="tqq" hidefocus=""></a><a href="/blog/" onclick="return false;" class="bds_renren" data-cmd="renren" hidefocus=""></a><a href="/blog/" onclick="return false;" class="bds_weixin" data-cmd="weixin" hidefocus=""></a><a href="/blog/" onclick="return false;" class="bds_more" data-cmd="more" hidefocus=""></a></div></div></body></html>